package com.itxialu.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itxialu.reggie.dto.DishDto;
import com.itxialu.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author shkstart
 * @create 2022-10-24 22:59
 */
@Transactional
public interface DishService extends IService<Dish> {
    //新增菜品，同时保存口味数据
    public void saveWithFlavor(DishDto dishDto);

    //根据ID查询菜品信息和对应口味信息
    public DishDto getByIdWithFlavor(long id);

    //更新菜品
    void updateWithFlavor(DishDto dishDto);
}
